﻿using IntoNails.Infrastructure.InteractionRequests;

namespace IntoNails.Infrastructure.Views
{
    /// <summary>
    /// Interaction logic for MessageBoxView.xaml
    /// </summary>
    public partial class MessageBoxView : MessageBoxRequest, IGenericInteractionView<MessageBoxContext>
    {
        public MessageBoxView()
        {
            InitializeComponent();
            this.ViewModel = new MessageBoxViewModel();
            this.DataContext = this.ViewModel;
        }

        public MessageBoxViewModel ViewModel { get; private set; }

        public void SetEntity(MessageBoxContext messageBoxResult)
        {
            this.ViewModel.SetEntity(messageBoxResult);
        }

        public MessageBoxContext GetEntity()
        {
            return this.ViewModel.GetEntity();
        }
    }
}
